﻿namespace etracks.Web
{
    using etracks.EntityModels;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;

    /// <summary>
    /// ViewModel used in ResourceTypeController, Index action
    /// </summary>
    public class ResourceTypeIndexViewModel
    {
        public int ResourceTypes { get; set; }
    }

    /// <summary>
    /// ViewModel used in ResourceTypeController, List action
    /// </summary>
    public class ResourceTypeListViewModel
    {
        public List<ResourceTypeReadOnlyViewModel> ResourceTypeList { get; set; }

        public ResourceTypeListViewModel()
        {
            this.ResourceTypeList = new List<ResourceTypeReadOnlyViewModel>();
        }
    }

    /// <summary>
    /// ViewModel used in ResourceTypeController, Search action
    /// </summary>
    public class ResourceTypeSearchViewModel
    {
        public string Search_Term { get; set; }

        public List<ResourceType> ResourceTypeList { get; set; }

        public ResourceTypeSearchViewModel()
        {
            this.ResourceTypeList = new List<ResourceType>();
        }
    }

    public class ResourceTypeRegistrationViewModel : ResourceType 
    {
        //public List<ResourceTypeType> ResourceTypeTypeList { get; set; }
    }

    public class ResourceTypeReadOnlyViewModel : ResourceType
    {
        //public string ResourceTypeType { get; set; }
    }

}

